<div id="title-content">Nhu yếu phẩm</div><!-- End title-content -->
<div class="right-content">
    <?php 
    $flag=1;
    foreach($items as $item) { ?>
    <div class="item">
        <h3 class="title-item"><a href="<?php echo base_url();?>nhu-yeu-pham/<?php echo $item->category_product_alias;?>"><?php echo $item->category_product_name;?></a></h3>
        <div class="image-item">
            <img src="<?php echo base_url();?>public/upload/categoryproducts/<?php echo $item->category_product_image;?>" width="208" height="156" class="image-item-image" />
            <a href="<?php echo base_url();?>nhu-yeu-pham/<?php echo $item->category_product_alias;?>" class="view-more"></a>
        </div>
    
    </div> <!-- End item -->
    <?php
        if($flag%2!=0)
            //echo '<div class="line-item"></div>';
     ?>
     <?php
        if($flag%2==0)
            //echo '<div class="line-end-item"></div>';
            $flag++;
     }// End foreach
     ?>

    
    

</div> <!-- End right-content -->